import axios from 'axios'
import fs from 'fs'

import { getBookContent } from './utils'
export default async function CeshiCheero() {
    // const result = await getBookContent('https://www.e5k6.icu/index/45123')
    // // 写入到本地的一个json文件中
    // const txtCon = result.map(item => `${item.title}\n${item.cont}`).join('\n\n')
    // // fs.writeFileSync('bookContent.txt', txtCon, 'utf-8')
    // fs.writeFileSync('bookContent2.txt', txtCon, 'utf-8')
    // fs.writeFileSync('bookContent.txt', JSON.stringify(result, null, 2), 'utf-8')
    // fs.writeFileSync('bookContent.json', JSON.stringify(result, null, 2), 'utf-8')

    return <div>
        {/* {
            result.map((item, index) => {
                return <div key={index}>
                   
                </div>
            })
        } */}
    </div>
}